/* eslint valid-jsdoc: "off" */

"use strict";

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = (appInfo) => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
   const config = (exports = {
    mysql: {
      // 单数据库信息配置
      client: {
        // host
        host: "localhost",
        // 端口号
        port: "3306",
        // 用户名
        user: "root",
        // 密码
        password: "root",
        // 数据库名
        database: "mke",
      },
      // 是否加载到 app 上，默认开启
      app: true,
      // 是否加载到 agent 上，默认关闭
      agent: false,
    },
    oss:{
      client:{
        accessKeyId:"LTAI5t6yqdokgD8KTMAvBAvd",
        accessKeySecret:"WzKmGLjgZV5rO997HdcTn1RBoszLSZ",
        bucket:"zyy123456",
        endpoint:"oss-cn-hangzhou.aliyuncs.com",
        timeout:"60s"
      }
    },
    multipart:{
      mode:"file"
    },
    security: {
      csrf: {
        enable:false
      },
    }
  });

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + "_1670501666851_2673";

  // add your middleware config here
  config.middleware = [];

  // add your user config here
  const userConfig = {
    // myAppName: 'egg',
  };

  return {
    ...config,
    ...userConfig,
  };
};
